export default {
	state: {
		userInfo: uni.getStorageSync("userInfo"),
		smartAuth: 'bearer ' + uni.getStorageSync('token')
	},
	mutations: {
		setUserInfo: (state, userInfo) => {
			uni.setStorageSync("userInfo", userInfo)
			state.userInfo = userInfo
		},
	},
	actions: {
		setUserInfo({
			commit
		}, userInfo) {
			commit('setUserInfo', userInfo)
		},
	}
}